<?php

/**
 * The followings are the available columns in all the table on database:
 * @property integer $id
 * @property integer $version
 * @property integer $creationDate
 * @property integer $creationId
 * @property integer $updateDate
 * @property integer $updateId
 */
class BaseModel extends CActiveRecord
{
	/**
	 * @return array validation rules for model attributes.
	 */
	public function rules() {
		return array(
			array('creationId', 'required'),
			array('creationId, updateId', 'numerical', 'integerOnly'=>true),
		);
	}

	/**
	 * @return array customized attribute labels (name=>label)
	 */
	public function attributeLabels()
	{
		return array(
			'id' 			=> 'ID',
			'version' 		=> 'Version',
			'creationDate' 	=> 'Creation Date',
			'creationId' 	=> 'Creation',
			'updateDate' 	=> 'Update Date',
			'updateId' 		=> 'Update',
		);
	}
}
